﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VideoCarousel.Entity
{
    public class AppConfig:System.ComponentModel.INotifyPropertyChanged
    {
        private double _left;
        private double _top;
        private double _width;
        private double _height;
        private string _videoFolder;
        private bool _isFullScreen;
        private bool contentFull;
        public double Left
        {
            get => _left;
            set
            {
                _left = value;
                PropertyChangedM("Left");

            }
        }
        public double Top
        {
            get => _top;
            set
            {
                _top = value;
                PropertyChangedM("Top");
            }
        }
        public double Width
        {
            get => _width;
            set
            {
                _width = value;
                PropertyChangedM("Width");

            }
        }
        public double Height
        {
            get => _height;
            set
            {
                _height = value;
                PropertyChangedM("Height");

            }
        }
        public string VideoFolder
        {
            get => _videoFolder;
            set
            {
                _videoFolder = value;
                PropertyChangedM("VideoFolder");

            }
        }
        public bool IsFullScreen
        {
            get => _isFullScreen;
            set
            {
                _isFullScreen = value;
                PropertyChangedM("IsFullScreen");

            }
        }   
        public string decode { set; get; }
        public string audioDevice { set; get; }
        public bool autoPlay { set; get; }

        public System.Windows.Visibility AudioConfig { set; get; }
        public System.Windows.Visibility VideoConfig { set; get; }
        public event PropertyChangedEventHandler PropertyChanged;
        private void PropertyChangedM(string name)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
        }
    }
}
